<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" autocomplete="off">
    <input name="row[org_cate_id]" type="hidden" value="{$ids}">
    <div class="form-group">
        <label for="c-group" class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>{:__('班号')}:</label>
        <div class="col-xs-12 col-sm-4">
            <select id="c-group" class="first form-control" name="row[groupid]" >
                {foreach name="orgName_tree" item="vo"}
                <option value="{$key}" >{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="c-number_id" class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>{:__('学生学号')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-number_id" data-rule="required" class="form-control" name="row[number_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('学生姓名')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[gender]-1"><input id="row[gender]-1" name="row[gender]" type="radio" value="1" checked /> 男</label>
                <label for="row[gender]-2"><input id="row[gender]-2" name="row[gender]" type="radio" value="2"/> 女</label>
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-age" class="control-label col-xs-12 col-sm-2">{:__('年龄')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-age" class="form-control" name="row[age]" type="number" value="" onmousewheel="return false;" onDOMMouseScroll="stopScrollFun">
        </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-password" class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-password" data-rule="required;password" class="form-control" name="row[password]" type="text" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-pusername" class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>家长{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-pusername" data-rule="required" class="form-control" name="row[pusername]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-ppassword" class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>家长{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-ppassword" data-rule="required;password" class="form-control" name="row[ppassword]" type="text" value="" />
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script>
    function change_cate(obj){
        $("#c-org_cate_id").val($(obj).val());
    }

    function change_grade(obj){
        $("#c-org_grade_id").val($(obj).val());
    }
</script>
<script>
    function stopScrollFun(evt) {
        evt = evt || window.event;
        if(evt.preventDefault) {
            // Firefox
            evt.preventDefault();
            evt.stopPropagation();
        } else {
            // IE
            evt.cancelBubble=true;
            evt.returnValue = false;
        }
        return false;
    }
</script>